new Vue({
	el: "body",
	data: {
		Coupon: []
	},
	created: function() {
		this.leancloudinit();
	},
	methods: {
		backpage:function(){
			history.back();
		},
		leancloudinit: function() {
			var _this = this;
			var APP_ID = 'c4w6bVvWfh8xxcmkBE1G0gIt-gzGzoHsz';
			var APP_KEY = 'JBikg4Ksk76zcTi5BKYWvTJF';
			AV.init({
				appId: APP_ID,
				appKey: APP_KEY
			});
			var phonenum = AV.User.current().attributes.username;
			var query = new AV.Query('ELM_user');
			query.contains('phonenum', '' + phonenum + '');
			query.find().then(function(data) {
				_this.Coupon = eval(data[0].attributes.Coupon);
			}, function(error) {
				// 异常处理
			});
		}
	}
})